#!docker.sh
#!/bin/bash
imagesid=$(docker ps | grep wf_service |awk '{print $1}')
if [ -n "$imagesid" ]
then
echo "imagesid stop" $imagesid
  docker stop $imagesid
  docker rm $imagesid
  docker rmi wf_service
fi
echo "build image"
docker build -t wf_service .
echo "run image"
docker run -d -p 1111:1111  wf_service

echo "**********************wf_service on Docker started*************************"
